package com.backend.demo1.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AppConfig {
    @Value("${spring.profiles.active}")
    private String activeProfile;

    public boolean isDevMode() {
        return "dev".equalsIgnoreCase(activeProfile);
    }
}